package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cg.dao.BusinessApplicationDao;
import com.cg.entity.BusinessApplication;
import com.cg.utils.R;

/**
 * 在线申请
 * @author cumt
 *
 */
@Service("businessApplicationServiceImpl")
public class BusinessApplicationServiceImpl {
	@Autowired
	BusinessApplicationDao businessApplicationDao;
	
	public List<BusinessApplication> queryList(Map<String, Object> params){
		
		return businessApplicationDao.queryList(params);
	}
	
	public R save(BusinessApplication application){
		businessApplicationDao.save(application);
		return R.ok();
	}
	
	public int queryTotal(Map<String,Object> query) {
		
		return businessApplicationDao.queryTotal();
	}
	
	public R update(BusinessApplication application){
		businessApplicationDao.update(application);
		return R.ok();
	}
	
	public void deleteBatch(Long[] ids) {
		businessApplicationDao.deleteBatch(ids);
	}

	
	public BusinessApplication queryObject(Long id) {
		return businessApplicationDao.queryObject(id);
	}
}
